package com.sunjob.common.domain.loginServer;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : Wangzurong
 * @create 2022-07-25 10:29
 */
@Data
public class BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;


    /** 创建者 */
    private String createBy;

    /** 创建时间 */
    @JsonSerialize(using=LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime createTime;

    /** 更新者 */

    private String updateBy;

    /** 更新时间 */
    @JsonSerialize(using=LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime updateTime;

    /** 状态 */
    private Integer status;

}
